/*
 * @Description: 
 * @Author: 赵大壮
 * @Date: 2021-12-06 17:18:37
 * @LastEditTime: 2022-12-06 11:46:27
 * @LastEditors: 赵大壮
 */
import DZServiceAssess from "@/views/测评管理/service/DZServiceAssess";
import { Component, Vue, Inject } from "vue-property-decorator";
import DZServiceUserAssess from "../service/DZServiceUserAssess";

@Component({
    components: {}
})
export default class Index extends Vue {

    s_user_assess = new DZServiceUserAssess();

    s_assess = new DZServiceAssess();

    created() { }

    mounted() {
        this.action_list_user_assess();
        this.s_assess.net_list_assess_dic();
    }

    beforeDestroy() {

    }

    action_list_user_assess() {
        this.s_user_assess.net_list_user_assess();
    }

    action_export_data() {
        this.s_user_assess.net_export_data();
    }

    action_page_change(val) {
        this.s_user_assess.m_page.page = val;
        this.action_list_user_assess();
    }

    action_report_status(status) {
        switch (status) {
            case 0:
                return '未测评';
            case 1:
                return '生成中';
            case 2:
                return '已生成';
        }
    }
    action_report_status_style(status) {
        switch (status) {
            case 0:
                return 'text-cc';
            case 1:
                return 'text-calt';
            case 2:
                return 'text-caux';
        }
    }

    action_down_report(path) {
        this.s_user_assess.net_down_load(path)
    }

}